﻿@{
    ViewBag.Title = "投稿";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/Assets/fileupload/filestyle.css" rel="stylesheet" />
<script src="https://maplemei.gitee.io/xm-select/xm-select.js"></script>
<script src="~/Assets/UEditor/ueditor.config.front.js"></script>
<script src="~/Assets/UEditor/ueditor.all.min.js"></script>
<script src="~/Scripts/publish/publish.js"></script>
<div class="container">
    <ol class="cd-breadcrumb triangle">
        <li><a asp-controller="Home" asp-action="Index">首页</a></li>
        <li class="current"><em>@ViewBag.Title</em></li>
    </ol>
    <p class="text-red size20">
        投稿须知：投稿前请先站内搜索同类文章进行编辑修改操作，本页的重复投稿将不会接受，作直接删除处理！<br/>
        投稿通过后若文章的内容有任何更新，请及时修改更新，若后期发现内容有更新而长期未更新的，作删除处理！<br/>
        投稿通过后若文章的评论区有任何问题，长期未回复解释情况的，文章将作删除处理！
    </p>
    <hr/>
    <form class="form-group" id="article-form" method="post" onsubmit="return false">
        @*文章表单*@
        @Html.AntiForgeryToken()
        <div class="input-group">
            <span class="input-group-addon size18"><label for="article">文章标题：</label></span>
            <input type="text" id="article" class="form-control input-lg" name="Title" required placeholder="请输入文章标题">
            <span class="input-group-btn">
                <button type="button" id="search" class="btn btn-info btn-lg">
                    检索同类资源
                </button>
            </span>
        </div>
        <!-- 加载编辑器的容器 -->
        <div class="form-group overlay animated bounceInDown">
            <textarea id="editor" style="height: calc(100vh - 350px);" class="ueditor" name="Content" type="text/plain"></textarea>
        </div>
        <div class="row">
            <div class="col-md-6 col-sm-6">
                <div class="input-group">
                    <span class="input-group-addon">分类：</span>
                    <div id="category"></div>
                </div>
            </div>
            <div class="col-md-6 col-sm-6">
                <div class="input-group">
                    <span class="input-group-addon"><label for="Author">作者：</label></span>
                    <input type="text" class="form-control" id="Author" name="Author" required placeholder="投稿人名字(非常重要)">
                </div>
            </div>
            <div class="col-md-6 col-sm-6">
                <div class="input-group">
                    <span class="input-group-addon"><label for="Email">邮箱：</label></span>
                    <input type="email" class="form-control" id="Email" name="Email" required placeholder="您的电子邮箱(非常重要)">
                    <span class="input-group-btn">
                        <button type="button" id="getcode" class="btn btn-danger">
                            获取验证码
                        </button>
                    </span>
                </div>
            </div>
            <div class="col-md-6 col-sm-6">
                <div class="input-group">
                    <span class="input-group-addon"><label for="Code">验证码：</label></span>
                    <input type="text" class="form-control" id="Code" name="Code" required placeholder="验证码">
                    <span class="input-group-btn">
                        <button type="submit" id="submit" class="btn btn-info">
                            <i class="icon-rocket2"></i>
                            马上投递
                        </button>
                    </span>
                </div>
            </div>
        </div>
    </form>
</div>